multiplying polynomials using FOIL method